<template>
  <div class="block">
    <keep-alive>
      <el-pagination
        layout="prev, pager, next"
        :page-size="pageSize"
        :total="total"
        @current-change="handleCurrentChange"
      >
      </el-pagination>
    </keep-alive>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Emit, Prop } from "vue-property-decorator";
import { isEqual } from "lodash";

@Component({ name: "MyPagination" })
export default class MyPagination extends Vue {
  @Prop()
  total!: number;
  @Prop()
  pageSize!: number;

  @Emit("current-change")
  handleCurrentChange(page: number) {
    return page;
  }
}
</script>

<style></style>
